package com.zzq.service.impl;

import com.zzq.mapper.AdminMapper;
import com.zzq.pojo.Admin;
import com.zzq.pojo.Bidder;
import com.zzq.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
    private AdminMapper adminMapper;

    @Override
    public Admin findByAdminName(String username) {
        Admin admin =adminMapper.findByAdminName(username);
        return admin;
    }

    @Override
    public void updatePassword(String username, String newPwd) {
        adminMapper.updatePassword(username,newPwd);
    }
}
